package com.neusoft.neu24.nep.role.mapper;

import com.neusoft.neu24.nep.role.entity.Roles;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.neusoft.neu24.nep.role.entity.Sysnode;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 角色表 Mapper 接口
 * </p>
 *
 * @author 段静迪，duanjingdi@163.com
 * @since 2024-06-05
 */
@Mapper
public interface RolesMapper extends BaseMapper<Roles> {

    public List<Integer> selectSysnodesByRid(@Param("rid") Integer rid);

    int deleteRoleAuth(@Param("rid")  Integer rid);

    int insertRoleAuth(@Param("rid")int  rid, @Param("sysnodeids")  List<Integer> sysnodeids);

    List<Sysnode> selectMenuByRoleid(@Param("roleid") Integer roleid);
}
